package net.taobaoge.common.framework.biz.impl;

import java.io.Serializable;
import java.util.List;

import net.taobaoge.common.framework.biz.BaseManager;
import net.taobaoge.common.framework.dao.IBaseDAO;
import net.taobaoge.common.framework.util.condition.Condition;
import net.taobaoge.common.framework.util.condition.OrderBy;
import net.taobaoge.common.framework.util.finder.Updater;
import net.taobaoge.common.framework.util.page.Pagination;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.transaction.annotation.Transactional;


@Transactional
public class BaseManagerImpl<T extends Serializable> implements BaseManager<T> {
	protected Logger log = LoggerFactory.getLogger(getClass());
	private IBaseDAO<T> dao;

	public void setDao(IBaseDAO<T> dao) {
		this.dao = dao;
	}

	protected IBaseDAO<T> getDao() {
		return this.dao;
	}
	@Override
	public void delete(Object o) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public T deleteById(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> deleteById(Serializable[] ids) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pagination findAll(int pageNo, int pageSize, OrderBy... orderBys) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pagination findByEg(T eg, boolean anyWhere, Condition[] conds,
			int pageNo, int pageSize, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pagination findByEg(T eg, boolean anyWhere, int pageNo,
			int pageSize, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pagination findByEg(T eg, Condition[] conds, int pageNo,
			int pageSize, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Pagination findByEg(T eg, int pageNo, int pageSize,
			String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, boolean anyWhere, Condition[] conds,
			String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, boolean anyWhere, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, Condition[] conds, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, boolean anyWhere, Condition[] conds,
			int firstResult, int maxResult, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, boolean anyWhere, int firstResult,
			int maxResult, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, Condition[] conds, int firstResult,
			int maxResult, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<T> findByEgList(T eg, String... exclude) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T findById(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T load(Serializable id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T save(T entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public T saveAndRefresh(T entity) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object saveOrUpdate(Object o) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object update(Object o) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object updateByUpdater(Updater updater) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Object updateDefault(Object entity) {
		// TODO Auto-generated method stub
		return null;
	}
	
}
